package com.coderman.youpinshop.stock.enums;

/**
 * Description:库存操作类型枚举
 * date: 2022/1/15
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */

public enum StockOperationEnum {
    LOCK("lock","库存锁定"),
    UNLOCK("unlock","解除锁定"),
    DEDUCT("deduct","库存扣减"),
    INCREASE("increase","库存增加"),

    ;
    private String code;
    private String desc;
    StockOperationEnum(String code,String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }

}
